import tools from '@/tools'

export default [
  // {
  //   type: 'selection',
  //   minWidth: '50',
  //   label: '多选'
  // },
  {
    prop: 'type',
    label: '类型',
    minWidth: '80'
  },
  {
    prop: 'method',
    label: '请求方式',
    minWidth: '80'
  },
  {
    prop: 'data',
    label: '请求参数',
    minWidth: '100'
  },
  {
    prop: 'code',
    label: '编码',
    minWidth: '80'
  },
  {
    prop: 'mes',
    label: '信息',
    minWidth: '200'
  },
  {
    prop: 'url',
    label: 'URL',
    minWidth: '400'
  },
  {
    prop: 'time',
    label: '时间',
    minWidth: '100',
    formatter (row) {
      const time = tools.str2date(row.time)
      return tools.date2str(time)
    }
  }
]
